﻿@model App.Web.Models.ComanyIndexViewModel
@{
    ViewBag.Title = "Index";
}
@*<h2>
    Index</h2>
    <ul>
    @foreach (var company in Model) {
        <li>@company.CompanyName</li>
    }
    </ul>*@
<div class="Dashboard">
    <h3>
        Dashboard</h3>
    <div class="Dashboard_main">
        <div class="Dashboard_main_left">
            <div class="Dashboard_main_left_top">
                <div class="mature_position">
                    即将到期的职位（@Model.JobPositionList.Count()）</div>
                <div class="mature_position_jiantou">
                    <a href="#">
                        <img src="@Url.Content("~/Content/images/jiantou_left.png")" /></a><a href="#"><img src="@Url.Content("~/Content/images/jiantou_right.png")" /></a></div>
                <table cellpadding="0" cellspacing="0" width="100%" id="senfe">
                    <tr>
                        <th>
                            职位名称
                        </th>
                        <th>
                            位置
                        </th>
                        <th>
                            状态
                        </th>
                        <th>
                            过期
                        </th>
                        <th>
                            浏览量
                        </th>
                        <th>
                            点击量
                        </th>
                        <th>
                            申请
                        </th>
                    </tr>
                    @foreach (var positionitem in Model.JobPositionList)
                    {
                        <tr>
                            <td>
                                <a href="@positionitem.JobPositionId">@positionitem.JobTitle</a>
                            </td>
                            <td>
                                @positionitem.Place
                            </td>
                            <td>
                                @positionitem.Status
                            </td>
                            <td>
                                @positionitem.EndDate.ToShortDateString()
                            </td>
                            <td>
                                @positionitem.ViewCount
                            </td>
                            <td>
                                @positionitem.ClickCount
                            </td>
                            <td>
                                @positionitem.ApplyCount
                            </td>
                        </tr>
                    }
                    @*                    <tr>
                        <td>
                            <a href="#">IT维护工程师</a>
                        </td>
                        <td>
                            无锡崇安区
                        </td>
                        <td>
                            发布
                        </td>
                        <td>
                            2012/7/12
                        </td>
                        <td>
                            5
                        </td>
                        <td>
                            3
                        </td>
                        <td>
                            2
                        </td>
                    </tr>*@
                    <script language="javascript"><!--
                        //senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
                        senfe("senfe", "#f6f6f6", "#ffffff", "#ecf7ff");
--></script>
                </table>
            </div>
            <div class="Dashboard_main_left_btm">
                <div class="accept_position">
                    最近应聘职位（@Model.ApplicationList.Count()）</div>
                <div class="mature_position_jiantou">
                    <a href="#">
                        <img src="images/jiantou_left.png" /></a><a href="#"><img src="images/jiantou_right.png" /></a></div>
                <table cellpadding="0" cellspacing="0" width="100%" id="senfe">
                    <tr>
                        <th>
                            职位名称
                        </th>
                        <th>
                            应聘职位
                        </th>
                        <th>
                            要求薪水
                        </th>
                        <th>
                            分级
                        </th>
                        <th>
                            申请日期
                        </th>
                        <th>
                            状态
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
                    @foreach (var applicationitem in Model.ApplicationList)
                    {
                        <tr>
                            <td>
                                @applicationitem.JobTitle
                            </td>
                            <td>
                                @applicationitem.JobTitle
                            </td>
                            <td>
                                @applicationitem.DesiredSalary
                            </td>
                            <td>
                                @applicationitem.Rating
                            </td>
                            <td>
                                @applicationitem.DateApplied.ToShortDateString()
                            </td>
                            <td>
                                @applicationitem.Status
                            </td>
                            <td>
                                操作
                            </td>
                        </tr>
                    }
                </table>
            </div>
        </div>
        <div class="Dashboard_main_right">
            <div class="call_board_title">
                公告板</div>
            <div class="call_board_box">
                <ul>
                    @*<li class="hots"><a href="#">新年特惠新年特惠特惠</a><span>12.31</span></li>*@
                    @foreach (var newsitem in Model.BulletinList)
                    {
                        <li><a href="#">@newsitem.Title</a><span>@newsitem.DatePosted.Value.ToString("MM.dd")</span></li>
                    }
                </ul>
            </div>
        </div>
        <div class="cr">
        </div>
    </div>
</div>
